/**
 * 对应课程 3-5
*/

#include <stdio.h>

int main()
{
    // 无符号和有符号数，整数自动转换原则
    int a = -1;
    unsigned int b = 1;

    if (a > b)
        printf("a > b, a = %d, b = %u\n", a, b);
    else
        printf("a <= b, a = %d, b = %u\n", a, b);

    // 边界轮回问题
    char cc = 127;
    cc += 1;
    printf("%d\n",cc);

    // 边界轮回造成的死循环
    unsigned int c = 1;
    for (; c >= 0; c--)
    {
        printf("%d\n", c);
    }

    return 0;
}